package com.atguigu.eud_teacher.service;
import com.atguigu.eud_teacher.entity.CourseEntity;
import com.atguigu.eud_teacher.entity.vo.SubjectAndDescVo;
import com.atguigu.eud_teacher.vo.CourseInfoVo;
import com.atguigu.eud_teacher.vo.CoursePublishVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 课程
 *
 * @author wuyao
 * @email 13918471632@163.com
 * @date 2021-03-23 12:12:26
 */
public interface CourseService extends IService<CourseEntity> {
    String insertCourseAndDescription(CourseEntity courseEntity);

    CourseEntity selectById(String id);

    void updateCourseInfo(CourseEntity courseEntity);

    CoursePublishVo getFinalResult(String id);

    void deleteCourse(String courseId);

    Map<String,Object> selectIndexByHotSubjects();

    Map<String, Object> conditionSelect(long page, long limit, SubjectAndDescVo subjectAndDescVo);

    CourseInfoVo getBaseCourseInfo(String courseId);

    com.atguigu.commonutils.ordervo.CourseInfoVo getBaseCourseInfoo(String courseId);
}

